from rest_framework import serializers
from myapp.models import User,Course

class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = "__all__"

class CourseSer(serializers.ModelSerializer):
    class Meta:
        model = Course
        fields = "__all__"